package moonstar.employee.EmployeeSon;

import moonstar.employee.Employee;
import moonstar.utils.Constants;

public class Manager extends Employee {
    public int work_num;
    public Manager() {
        work_num=Employee.workNumber++;
        super.category= Constants.MANAGER_CATEGORY;
        super.SalaryNumber=Constants.MANAGER_SALARY;
    }

    @Override
    public void printSalary() {
        System.out.println("------------------工资条-------------------");
        System.out.println();
        System.out.println("--职工工号-- | --职工工资类别-- | --工资数(年薪)");
        System.out.println("----"+work_num+"----  |"+" ---经理("+category+")---   | ---"+this.SalaryNumber+"千元");
        System.out.println();
        System.out.println("------------------------------------------");
    }
}
